package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地磅配置对象 weight_config
 * 
 * @author he
 * @date 2025-09-22
 */
public class WeightConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /**  位置 */
    @Excel(name = " 位置")
    private String position;

    /**  串口 */
    @Excel(name = " 串口")
    private String commPorts;

    /**  波特率 */
    @Excel(name = " 波特率")
    private Integer baudRate;

    /**  数据位 */
    @Excel(name = " 数据位")
    private Integer dataBits;

    /**  停止位 */
    @Excel(name = " 停止位")
    private Integer stopBits;

    /**  校验位 */
    @Excel(name = " 校验位")
    private Integer parity;
    private Integer number;
    private String substr;

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getSubstr() {
        return substr;
    }

    public void setSubstr(String substr) {
        this.substr = substr;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }

    public void setCommPorts(String commPorts) 
    {
        this.commPorts = commPorts;
    }

    public String getCommPorts() 
    {
        return commPorts;
    }

    public void setBaudRate(Integer baudRate) 
    {
        this.baudRate = baudRate;
    }

    public Integer getBaudRate() 
    {
        return baudRate;
    }

    public void setDataBits(Integer dataBits) 
    {
        this.dataBits = dataBits;
    }

    public Integer getDataBits() 
    {
        return dataBits;
    }

    public void setStopBits(Integer stopBits) 
    {
        this.stopBits = stopBits;
    }

    public Integer getStopBits() 
    {
        return stopBits;
    }

    public void setParity(Integer parity) 
    {
        this.parity = parity;
    }

    public Integer getParity() 
    {
        return parity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("position", getPosition())
            .append("commPorts", getCommPorts())
            .append("baudRate", getBaudRate())
            .append("dataBits", getDataBits())
            .append("stopBits", getStopBits())
            .append("parity", getParity())
            .toString();
    }
}
